<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Improved Background-Foreground Segmentation Methods</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Improved Background-Foreground Segmentation Methods</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dca/classcv_1_1bgsegm_1_1BackgroundSubtractorCNT.html">cv::bgsegm::BackgroundSubtractorCNT</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Background subtraction based on counting.  <a href="../../de/dca/classcv_1_1bgsegm_1_1BackgroundSubtractorCNT.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d5c/classcv_1_1bgsegm_1_1BackgroundSubtractorGMG.html">cv::bgsegm::BackgroundSubtractorGMG</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Background Subtractor module based on the algorithm given in <a class="el" href="../../d0/de3/citelist.html#CITEREF_Gold2012">[92]</a> .  <a href="../../d1/d5c/classcv_1_1bgsegm_1_1BackgroundSubtractorGMG.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/dd5/classcv_1_1bgsegm_1_1BackgroundSubtractorGSOC.html">cv::bgsegm::BackgroundSubtractorGSOC</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.  <a href="../../d4/dd5/classcv_1_1bgsegm_1_1BackgroundSubtractorGSOC.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d4c/classcv_1_1bgsegm_1_1BackgroundSubtractorLSBP.html">cv::bgsegm::BackgroundSubtractorLSBP</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Background Subtraction using Local <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> Binary Pattern. More details about the algorithm can be found at <a class="el" href="../../d0/de3/citelist.html#CITEREF_LGuo2016">[101]</a>.  <a href="../../de/d4c/classcv_1_1bgsegm_1_1BackgroundSubtractorLSBP.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/de5/classcv_1_1bgsegm_1_1BackgroundSubtractorLSBPDesc.html">cv::bgsegm::BackgroundSubtractorLSBPDesc</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">This is for calculation of the LSBP descriptors.  <a href="../../d1/de5/classcv_1_1bgsegm_1_1BackgroundSubtractorLSBPDesc.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/da7/classcv_1_1bgsegm_1_1BackgroundSubtractorMOG.html">cv::bgsegm::BackgroundSubtractorMOG</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Gaussian Mixture-based Background/Foreground Segmentation <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html" title="This is a base class for all more or less complex algorithms in OpenCV. ">Algorithm</a>.  <a href="../../d6/da7/classcv_1_1bgsegm_1_1BackgroundSubtractorMOG.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/dda/classcv_1_1bgsegm_1_1SyntheticSequenceGenerator.html">cv::bgsegm::SyntheticSequenceGenerator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Synthetic frame sequence generator for testing background subtraction algorithms.  <a href="../../d1/dda/classcv_1_1bgsegm_1_1SyntheticSequenceGenerator.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga1a5838fa2d2697ac455b136bfcdb4600"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/group__bgsegm.html#ga1a5838fa2d2697ac455b136bfcdb4600">cv::bgsegm::LSBPCameraMotionCompensation</a> { <br/>
  <a class="el" href="../../d2/d55/group__bgsegm.html#gga1a5838fa2d2697ac455b136bfcdb4600a5851b7a8bd9c7cec7006e8c619122f3c">cv::bgsegm::LSBP_CAMERA_MOTION_COMPENSATION_NONE</a> = 0, 
<br/>
  <a class="el" href="../../d2/d55/group__bgsegm.html#gga1a5838fa2d2697ac455b136bfcdb4600ad8f108b7815d6bcccd32b849063e0a9c">cv::bgsegm::LSBP_CAMERA_MOTION_COMPENSATION_LK</a>
<br/>
 }</td></tr>
<tr class="separator:ga1a5838fa2d2697ac455b136bfcdb4600"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gab344bf148349e4cbeb3ed39efa9fbd2c"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../de/dca/classcv_1_1bgsegm_1_1BackgroundSubtractorCNT.html">BackgroundSubtractorCNT</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/group__bgsegm.html#gab344bf148349e4cbeb3ed39efa9fbd2c">cv::bgsegm::createBackgroundSubtractorCNT</a> (int minPixelStability=15, bool useHistory=true, int maxPixelStability=15 *60, bool isParallel=true)</td></tr>
<tr class="memdesc:gab344bf148349e4cbeb3ed39efa9fbd2c"><td class="mdescLeft"> </td><td class="mdescRight">Creates a CNT Background Subtractor.  <a href="../../d2/d55/group__bgsegm.html#gab344bf148349e4cbeb3ed39efa9fbd2c">More...</a><br/></td></tr>
<tr class="separator:gab344bf148349e4cbeb3ed39efa9fbd2c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae561c9701970d0e6b35ec12bae149814"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d1/d5c/classcv_1_1bgsegm_1_1BackgroundSubtractorGMG.html">BackgroundSubtractorGMG</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/group__bgsegm.html#gae561c9701970d0e6b35ec12bae149814">cv::bgsegm::createBackgroundSubtractorGMG</a> (int initializationFrames=120, double decisionThreshold=0.8)</td></tr>
<tr class="memdesc:gae561c9701970d0e6b35ec12bae149814"><td class="mdescLeft"> </td><td class="mdescRight">Creates a GMG Background Subtractor.  <a href="../../d2/d55/group__bgsegm.html#gae561c9701970d0e6b35ec12bae149814">More...</a><br/></td></tr>
<tr class="separator:gae561c9701970d0e6b35ec12bae149814"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7ba3e826c343adc15782ab9139f82445"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d4/dd5/classcv_1_1bgsegm_1_1BackgroundSubtractorGSOC.html">BackgroundSubtractorGSOC</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/group__bgsegm.html#ga7ba3e826c343adc15782ab9139f82445">cv::bgsegm::createBackgroundSubtractorGSOC</a> (int mc=<a class="el" href="../../d2/d55/group__bgsegm.html#gga1a5838fa2d2697ac455b136bfcdb4600a5851b7a8bd9c7cec7006e8c619122f3c">LSBP_CAMERA_MOTION_COMPENSATION_NONE</a>, int nSamples=20, float replaceRate=0.003f, float propagationRate=0.01f, int hitsThreshold=32, float alpha=0.01f, float beta=0.0022f, float blinkingSupressionDecay=0.1f, float blinkingSupressionMultiplier=0.1f, float noiseRemovalThresholdFacBG=0.0004f, float noiseRemovalThresholdFacFG=0.0008f)</td></tr>
<tr class="memdesc:ga7ba3e826c343adc15782ab9139f82445"><td class="mdescLeft"> </td><td class="mdescRight">Creates an instance of <a class="el" href="../../d4/dd5/classcv_1_1bgsegm_1_1BackgroundSubtractorGSOC.html" title="Implementation of the different yet better algorithm which is called GSOC, as it was implemented duri...">BackgroundSubtractorGSOC</a> algorithm.  <a href="../../d2/d55/group__bgsegm.html#ga7ba3e826c343adc15782ab9139f82445">More...</a><br/></td></tr>
<tr class="separator:ga7ba3e826c343adc15782ab9139f82445"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaec3834f6a43f5bfda4d6bdd23c44d394"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../de/d4c/classcv_1_1bgsegm_1_1BackgroundSubtractorLSBP.html">BackgroundSubtractorLSBP</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/group__bgsegm.html#gaec3834f6a43f5bfda4d6bdd23c44d394">cv::bgsegm::createBackgroundSubtractorLSBP</a> (int mc=<a class="el" href="../../d2/d55/group__bgsegm.html#gga1a5838fa2d2697ac455b136bfcdb4600a5851b7a8bd9c7cec7006e8c619122f3c">LSBP_CAMERA_MOTION_COMPENSATION_NONE</a>, int nSamples=20, int LSBPRadius=16, float Tlower=2.0f, float Tupper=32.0f, float Tinc=1.0f, float Tdec=0.05f, float Rscale=10.0f, float Rincdec=0.005f, float noiseRemovalThresholdFacBG=0.0004f, float noiseRemovalThresholdFacFG=0.0008f, int LSBPthreshold=8, int minCount=2)</td></tr>
<tr class="memdesc:gaec3834f6a43f5bfda4d6bdd23c44d394"><td class="mdescLeft"> </td><td class="mdescRight">Creates an instance of <a class="el" href="../../de/d4c/classcv_1_1bgsegm_1_1BackgroundSubtractorLSBP.html" title="Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found ...">BackgroundSubtractorLSBP</a> algorithm.  <a href="../../d2/d55/group__bgsegm.html#gaec3834f6a43f5bfda4d6bdd23c44d394">More...</a><br/></td></tr>
<tr class="separator:gaec3834f6a43f5bfda4d6bdd23c44d394"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga17d9525d2ad71f74d8d29c2c5e11903d"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d6/da7/classcv_1_1bgsegm_1_1BackgroundSubtractorMOG.html">BackgroundSubtractorMOG</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/group__bgsegm.html#ga17d9525d2ad71f74d8d29c2c5e11903d">cv::bgsegm::createBackgroundSubtractorMOG</a> (int history=200, int nmixtures=5, double backgroundRatio=0.7, double noiseSigma=0)</td></tr>
<tr class="memdesc:ga17d9525d2ad71f74d8d29c2c5e11903d"><td class="mdescLeft"> </td><td class="mdescRight">Creates mixture-of-gaussian background subtractor.  <a href="../../d2/d55/group__bgsegm.html#ga17d9525d2ad71f74d8d29c2c5e11903d">More...</a><br/></td></tr>
<tr class="separator:ga17d9525d2ad71f74d8d29c2c5e11903d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4dcae4825e43d6ba54487ddc7a85cbb4"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d1/dda/classcv_1_1bgsegm_1_1SyntheticSequenceGenerator.html">SyntheticSequenceGenerator</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/group__bgsegm.html#ga4dcae4825e43d6ba54487ddc7a85cbb4">cv::bgsegm::createSyntheticSequenceGenerator</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> background, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> object, double amplitude=2.0, double wavelength=20.0, double wavespeed=0.2, double objspeed=6.0)</td></tr>
<tr class="memdesc:ga4dcae4825e43d6ba54487ddc7a85cbb4"><td class="mdescLeft"> </td><td class="mdescRight">Creates an instance of <a class="el" href="../../d1/dda/classcv_1_1bgsegm_1_1SyntheticSequenceGenerator.html" title="Synthetic frame sequence generator for testing background subtraction algorithms. ...">SyntheticSequenceGenerator</a>.  <a href="../../d2/d55/group__bgsegm.html#ga4dcae4825e43d6ba54487ddc7a85cbb4">More...</a><br/></td></tr>
<tr class="separator:ga4dcae4825e43d6ba54487ddc7a85cbb4"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga1a5838fa2d2697ac455b136bfcdb4600"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1a5838fa2d2697ac455b136bfcdb4600">◆ </a></span>LSBPCameraMotionCompensation</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d2/d55/group__bgsegm.html#ga1a5838fa2d2697ac455b136bfcdb4600">cv::bgsegm::LSBPCameraMotionCompensation</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d2/dce/bgsegm_8hpp.html">opencv2/bgsegm.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga1a5838fa2d2697ac455b136bfcdb4600a5851b7a8bd9c7cec7006e8c619122f3c"></a>LSBP_CAMERA_MOTION_COMPENSATION_NONE <div class="python_language">Python: cv.bgsegm.LSBP_CAMERA_MOTION_COMPENSATION_NONE</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga1a5838fa2d2697ac455b136bfcdb4600ad8f108b7815d6bcccd32b849063e0a9c"></a>LSBP_CAMERA_MOTION_COMPENSATION_LK <div class="python_language">Python: cv.bgsegm.LSBP_CAMERA_MOTION_COMPENSATION_LK</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gab344bf148349e4cbeb3ed39efa9fbd2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab344bf148349e4cbeb3ed39efa9fbd2c">◆ </a></span>createBackgroundSubtractorCNT()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../de/dca/classcv_1_1bgsegm_1_1BackgroundSubtractorCNT.html">BackgroundSubtractorCNT</a>&gt; cv::bgsegm::createBackgroundSubtractorCNT </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minPixelStability</em> = <code>15</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>useHistory</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>maxPixelStability</em> = <code>15 *60</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>isParallel</em> = <code>true</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.bgsegm.createBackgroundSubtractorCNT(</td><td class="paramname">[, minPixelStability[, useHistory[, maxPixelStability[, isParallel]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d2/dce/bgsegm_8hpp.html">opencv2/bgsegm.hpp</a>&gt;</code></p>
<p>Creates a CNT Background Subtractor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">minPixelStability</td><td>number of frames with same pixel color to consider stable </td></tr>
    <tr><td class="paramname">useHistory</td><td>determines if we're giving a pixel credit for being stable for a long time </td></tr>
    <tr><td class="paramname">maxPixelStability</td><td>maximum allowed credit for a pixel in history </td></tr>
    <tr><td class="paramname">isParallel</td><td>determines if we're parallelizing the algorithm </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gae561c9701970d0e6b35ec12bae149814"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae561c9701970d0e6b35ec12bae149814">◆ </a></span>createBackgroundSubtractorGMG()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d1/d5c/classcv_1_1bgsegm_1_1BackgroundSubtractorGMG.html">BackgroundSubtractorGMG</a>&gt; cv::bgsegm::createBackgroundSubtractorGMG </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>initializationFrames</em> = <code>120</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>decisionThreshold</em> = <code>0.8</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.bgsegm.createBackgroundSubtractorGMG(</td><td class="paramname">[, initializationFrames[, decisionThreshold]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d2/dce/bgsegm_8hpp.html">opencv2/bgsegm.hpp</a>&gt;</code></p>
<p>Creates a GMG Background Subtractor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">initializationFrames</td><td>number of frames used to initialize the background models. </td></tr>
    <tr><td class="paramname">decisionThreshold</td><td>Threshold value, above which it is marked foreground, else background. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga7ba3e826c343adc15782ab9139f82445"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7ba3e826c343adc15782ab9139f82445">◆ </a></span>createBackgroundSubtractorGSOC()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d4/dd5/classcv_1_1bgsegm_1_1BackgroundSubtractorGSOC.html">BackgroundSubtractorGSOC</a>&gt; cv::bgsegm::createBackgroundSubtractorGSOC </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>mc</em> = <code><a class="el" href="../../d2/d55/group__bgsegm.html#gga1a5838fa2d2697ac455b136bfcdb4600a5851b7a8bd9c7cec7006e8c619122f3c">LSBP_CAMERA_MOTION_COMPENSATION_NONE</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nSamples</em> = <code>20</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>replaceRate</em> = <code>0.003f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>propagationRate</em> = <code>0.01f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>hitsThreshold</em> = <code>32</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>alpha</em> = <code>0.01f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>beta</em> = <code>0.0022f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>blinkingSupressionDecay</em> = <code>0.1f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>blinkingSupressionMultiplier</em> = <code>0.1f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>noiseRemovalThresholdFacBG</em> = <code>0.0004f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>noiseRemovalThresholdFacFG</em> = <code>0.0008f</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.bgsegm.createBackgroundSubtractorGSOC(</td><td class="paramname">[, mc[, nSamples[, replaceRate[, propagationRate[, hitsThreshold[, alpha[, beta[, blinkingSupressionDecay[, blinkingSupressionMultiplier[, noiseRemovalThresholdFacBG[, noiseRemovalThresholdFacFG]]]]]]]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d2/dce/bgsegm_8hpp.html">opencv2/bgsegm.hpp</a>&gt;</code></p>
<p>Creates an instance of <a class="el" href="../../d4/dd5/classcv_1_1bgsegm_1_1BackgroundSubtractorGSOC.html" title="Implementation of the different yet better algorithm which is called GSOC, as it was implemented duri...">BackgroundSubtractorGSOC</a> algorithm. </p>
<p>Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mc</td><td>Whether to use camera motion compensation. </td></tr>
    <tr><td class="paramname">nSamples</td><td>Number of samples to maintain at each point of the frame. </td></tr>
    <tr><td class="paramname">replaceRate</td><td>Probability of replacing the old sample - how fast the model will update itself. </td></tr>
    <tr><td class="paramname">propagationRate</td><td>Probability of propagating to neighbors. </td></tr>
    <tr><td class="paramname">hitsThreshold</td><td>How many positives the sample must get before it will be considered as a possible replacement. </td></tr>
    <tr><td class="paramname">alpha</td><td>Scale coefficient for threshold. </td></tr>
    <tr><td class="paramname">beta</td><td>Bias coefficient for threshold. </td></tr>
    <tr><td class="paramname">blinkingSupressionDecay</td><td>Blinking supression decay factor. </td></tr>
    <tr><td class="paramname">blinkingSupressionMultiplier</td><td>Blinking supression multiplier. </td></tr>
    <tr><td class="paramname">noiseRemovalThresholdFacBG</td><td>Strength of the noise removal for background points. </td></tr>
    <tr><td class="paramname">noiseRemovalThresholdFacFG</td><td>Strength of the noise removal for foreground points. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gaec3834f6a43f5bfda4d6bdd23c44d394"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaec3834f6a43f5bfda4d6bdd23c44d394">◆ </a></span>createBackgroundSubtractorLSBP()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../de/d4c/classcv_1_1bgsegm_1_1BackgroundSubtractorLSBP.html">BackgroundSubtractorLSBP</a>&gt; cv::bgsegm::createBackgroundSubtractorLSBP </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>mc</em> = <code><a class="el" href="../../d2/d55/group__bgsegm.html#gga1a5838fa2d2697ac455b136bfcdb4600a5851b7a8bd9c7cec7006e8c619122f3c">LSBP_CAMERA_MOTION_COMPENSATION_NONE</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nSamples</em> = <code>20</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>LSBPRadius</em> = <code>16</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>Tlower</em> = <code>2.0f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>Tupper</em> = <code>32.0f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>Tinc</em> = <code>1.0f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>Tdec</em> = <code>0.05f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>Rscale</em> = <code>10.0f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>Rincdec</em> = <code>0.005f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>noiseRemovalThresholdFacBG</em> = <code>0.0004f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>noiseRemovalThresholdFacFG</em> = <code>0.0008f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>LSBPthreshold</em> = <code>8</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minCount</em> = <code>2</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.bgsegm.createBackgroundSubtractorLSBP(</td><td class="paramname">[, mc[, nSamples[, LSBPRadius[, Tlower[, Tupper[, Tinc[, Tdec[, Rscale[, Rincdec[, noiseRemovalThresholdFacBG[, noiseRemovalThresholdFacFG[, LSBPthreshold[, minCount]]]]]]]]]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d2/dce/bgsegm_8hpp.html">opencv2/bgsegm.hpp</a>&gt;</code></p>
<p>Creates an instance of <a class="el" href="../../de/d4c/classcv_1_1bgsegm_1_1BackgroundSubtractorLSBP.html" title="Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found ...">BackgroundSubtractorLSBP</a> algorithm. </p>
<p>Background Subtraction using Local <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> Binary Pattern. More details about the algorithm can be found at <a class="el" href="../../d0/de3/citelist.html#CITEREF_LGuo2016">[101]</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mc</td><td>Whether to use camera motion compensation. </td></tr>
    <tr><td class="paramname">nSamples</td><td>Number of samples to maintain at each point of the frame. </td></tr>
    <tr><td class="paramname">LSBPRadius</td><td>LSBP descriptor radius. </td></tr>
    <tr><td class="paramname">Tlower</td><td>Lower bound for T-values. See <a class="el" href="../../d0/de3/citelist.html#CITEREF_LGuo2016">[101]</a> for details. </td></tr>
    <tr><td class="paramname">Tupper</td><td>Upper bound for T-values. See <a class="el" href="../../d0/de3/citelist.html#CITEREF_LGuo2016">[101]</a> for details. </td></tr>
    <tr><td class="paramname">Tinc</td><td>Increase step for T-values. See <a class="el" href="../../d0/de3/citelist.html#CITEREF_LGuo2016">[101]</a> for details. </td></tr>
    <tr><td class="paramname">Tdec</td><td>Decrease step for T-values. See <a class="el" href="../../d0/de3/citelist.html#CITEREF_LGuo2016">[101]</a> for details. </td></tr>
    <tr><td class="paramname">Rscale</td><td>Scale coefficient for threshold values. </td></tr>
    <tr><td class="paramname">Rincdec</td><td>Increase/Decrease step for threshold values. </td></tr>
    <tr><td class="paramname">noiseRemovalThresholdFacBG</td><td>Strength of the noise removal for background points. </td></tr>
    <tr><td class="paramname">noiseRemovalThresholdFacFG</td><td>Strength of the noise removal for foreground points. </td></tr>
    <tr><td class="paramname">LSBPthreshold</td><td>Threshold for LSBP binary string. </td></tr>
    <tr><td class="paramname">minCount</td><td>Minimal number of matches for sample to be considered as foreground. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga17d9525d2ad71f74d8d29c2c5e11903d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga17d9525d2ad71f74d8d29c2c5e11903d">◆ </a></span>createBackgroundSubtractorMOG()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d6/da7/classcv_1_1bgsegm_1_1BackgroundSubtractorMOG.html">BackgroundSubtractorMOG</a>&gt; cv::bgsegm::createBackgroundSubtractorMOG </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>history</em> = <code>200</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nmixtures</em> = <code>5</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>backgroundRatio</em> = <code>0.7</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>noiseSigma</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.bgsegm.createBackgroundSubtractorMOG(</td><td class="paramname">[, history[, nmixtures[, backgroundRatio[, noiseSigma]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d2/dce/bgsegm_8hpp.html">opencv2/bgsegm.hpp</a>&gt;</code></p>
<p>Creates mixture-of-gaussian background subtractor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">history</td><td>Length of the history. </td></tr>
    <tr><td class="paramname">nmixtures</td><td>Number of Gaussian mixtures. </td></tr>
    <tr><td class="paramname">backgroundRatio</td><td>Background ratio. </td></tr>
    <tr><td class="paramname">noiseSigma</td><td>Noise strength (standard deviation of the brightness or each color channel). 0 means some automatic value. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga4dcae4825e43d6ba54487ddc7a85cbb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4dcae4825e43d6ba54487ddc7a85cbb4">◆ </a></span>createSyntheticSequenceGenerator()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d1/dda/classcv_1_1bgsegm_1_1SyntheticSequenceGenerator.html">SyntheticSequenceGenerator</a>&gt; cv::bgsegm::createSyntheticSequenceGenerator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>background</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>amplitude</em> = <code>2.0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>wavelength</em> = <code>20.0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>wavespeed</em> = <code>0.2</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>objspeed</em> = <code>6.0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.bgsegm.createSyntheticSequenceGenerator(</td><td class="paramname">background, object[, amplitude[, wavelength[, wavespeed[, objspeed]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d2/dce/bgsegm_8hpp.html">opencv2/bgsegm.hpp</a>&gt;</code></p>
<p>Creates an instance of <a class="el" href="../../d1/dda/classcv_1_1bgsegm_1_1SyntheticSequenceGenerator.html" title="Synthetic frame sequence generator for testing background subtraction algorithms. ...">SyntheticSequenceGenerator</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">background</td><td>Background image for object. </td></tr>
    <tr><td class="paramname">object</td><td>Object image which will move slowly over the background. </td></tr>
    <tr><td class="paramname">amplitude</td><td>Amplitude of wave distortion applied to background. </td></tr>
    <tr><td class="paramname">wavelength</td><td>Length of waves in distortion applied to background. </td></tr>
    <tr><td class="paramname">wavespeed</td><td>How fast waves will move. </td></tr>
    <tr><td class="paramname">objspeed</td><td>How fast object will fly over background. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:41 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
